package com.endava.Parsing;

/**Tests the regex class
 * @author adumitrescu
 *
 */
public class RegexTest {
	/**the main entry point*/
	public static void main(String[] args) {
//		Regex reg=new Regex();//creating a reference to Regex
		
		
		//*the two strings */
		String input="0744-000 111 0755-000222 0745.000 333 0755 123 456 (0748) 000 444 "; //the value
//		String regex=("07\\d{2}([-\\.])(\\d{3}[\\s\\d]?){3}");//the regex
//		String regex=("07\\d{2}([-\\s\\.]?(\\d{3})){2}");//the regex
		String regex=("((?:\\()(07\\d{2}\\))|07\\d{2})([-\\.\\s])?\\d{3}([-\\s\\.])?\\d{3}");//the regex
		
//		String regex="(\\(?07\\d\\d([\\)?\\-\\.])\\s?\\d\\d\\d\\s?\\d\\d\\d)*";//the regex
//		String regex="07\\d{2}";

		
		
//		String regex=("(((?<=\\()07\\d{2}\\)([\\)?\\-\\.]))|07\\d{2}([\\)?\\-\\.])\\s?\\d{3}\\s?\\d{3})*");//the regex
//		String regex=("(((?=\\()07\\d{2}\\)([\\)?\\-\\.]))|07\\d{2}([\\)?\\-\\.])\\s?\\d{3}\\s?\\d{3})*");//the regex
		
		
		
//		reg.numberFormat(regex, input);//calls number format on the two strings.
		
//		reg.numberFormat("abc", "abbcabcbacabcaaabcabc");
	}
}

